home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / plugin / nsIPluginInputStream.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  112 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPluginInputStream.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPluginInputStream_h__
  6. #define __gen_nsIPluginInputStream_h__
  7.  
  8.  
  9. #ifndef __gen_nsIInputStream_h__
  10. #include "nsIInputStream.h"
  11. #endif
  12.  
  13. #ifndef __gen_nspluginroot_h__
  14. #include "nspluginroot.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIPluginInputStream */
  23. #define NS_IPLUGININPUTSTREAM_IID_STR "af160530-542a-11d2-8164-006008119d7a"
  24.  
  25. #define NS_IPLUGININPUTSTREAM_IID \
  26.   {0xaf160530, 0x542a, 0x11d2, \
  27.     { 0x81, 0x64, 0x00, 0x60, 0x08, 0x11, 0x9d, 0x7a }}
  28.  
  29. /**
  30.  * The nsIPluginInputStream interface ...
  31.  */
  32. class NS_NO_VTABLE nsIPluginInputStream : public nsIInputStream {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPLUGININPUTSTREAM_IID)
  36.  
  37.   /**
  38.    *  Corresponds to NPStream's lastmodified field.)
  39.    */
  40.   /* void getLastModified (out unsigned long aResult); */
  41.   NS_IMETHOD GetLastModified(PRUint32 *aResult) = 0;
  42.  
  43.   /* void requestRead (out nsByteRange aRangeList); */
  44.   NS_IMETHOD RequestRead(nsByteRange *aRangeList) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSIPLUGININPUTSTREAM \
  50.   NS_IMETHOD GetLastModified(PRUint32 *aResult); \
  51.   NS_IMETHOD RequestRead(nsByteRange *aRangeList); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIPLUGININPUTSTREAM(_to) \
  55.   NS_IMETHOD GetLastModified(PRUint32 *aResult) { return _to GetLastModified(aResult); } \
  56.   NS_IMETHOD RequestRead(nsByteRange *aRangeList) { return _to RequestRead(aRangeList); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSIPLUGININPUTSTREAM(_to) \
  60.   NS_IMETHOD GetLastModified(PRUint32 *aResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aResult); } \
  61.   NS_IMETHOD RequestRead(nsByteRange *aRangeList) { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestRead(aRangeList); } 
  62.  
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65.  
  66. /* Header file */
  67. class nsPluginInputStream : public nsIPluginInputStream
  68. {
  69. public:
  70.   NS_DECL_ISUPPORTS
  71.   NS_DECL_NSIPLUGININPUTSTREAM
  72.  
  73.   nsPluginInputStream();
  74.  
  75. private:
  76.   ~nsPluginInputStream();
  77.  
  78. protected:
  79.   /* additional members */
  80. };
  81.  
  82. /* Implementation file */
  83. NS_IMPL_ISUPPORTS1(nsPluginInputStream, nsIPluginInputStream)
  84.  
  85. nsPluginInputStream::nsPluginInputStream()
  86. {
  87.   /* member initializers and constructor code */
  88. }
  89.  
  90. nsPluginInputStream::~nsPluginInputStream()
  91. {
  92.   /* destructor code */
  93. }
  94.  
  95. /* void getLastModified (out unsigned long aResult); */
  96. NS_IMETHODIMP nsPluginInputStream::GetLastModified(PRUint32 *aResult)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* void requestRead (out nsByteRange aRangeList); */
  102. NS_IMETHODIMP nsPluginInputStream::RequestRead(nsByteRange *aRangeList)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* End of implementation class template. */
  108. #endif
  109.  
  110.  
  111. #endif /* __gen_nsIPluginInputStream_h__ */
  112.